﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Directory.Web
{
	public partial class Controls_CategoryChilds : System.Web.UI.UserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			rptCateogryChilds.DataSource = CategoryDataProxy.GetChildsOfCategory(CategoryId);
			rptCateogryChilds.DataBind();
		}
		private int _categoryId;
		public int CategoryId{
			get { return _categoryId; }
			set { _categoryId = value; }
		}
	}
}